﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using ServiceConsumer;
using System.Web.Security;

public partial class Admin_OrderManager : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!(Roles.IsUserInRole("Admin")))
        {
            Response.Redirect("~/Admin/Login.aspx");
        }
        if (!IsPostBack)
        {
            string strUrlWS = "http://aspspider.info/m15tmdt/WebService.asmx";
            //string strUrlWS = "http://moving10ws.somee.com/service.asmx";
            //string sFromCity = "46";
            object[] para = null;

            object lstCity = WSProxy.CallWebService(strUrlWS, "CitiesList", para);
            DataTable dtCities = WSProxy.ConvertType<DataTable>(lstCity);
            Session["CitiesList"] = dtCities;
        }
    }
    protected void TrangThaiComboBox_DataBound(object sender, EventArgs e)
    {
        TrangThaiComboBox.Items.Add(new ListItem("Tất cả","-1"));
    }
   
}